// vector assign
// File: vector_assign.cpp
// 	c++ -Wall -g  -I ../Include/ vector_assign.cpp -o vector_assign 
// 在这里假设所有的所需的头文件放在../Include里面
#include <iostream>

#define vector Vector
#include "Vector.h"
using namespace std;

int main ()
{
	vector<int> first;
	vector<int> second;
	vector<int> third;

	first.assign((size_t)7,100);             // a repetition 7 times of value 100

	vector<int>::iterator it;
	it = first.begin() + 1;

	second.assign (it,first.end()-1); // the 5 central values of first

	int myints[] = {1776,7,4};
	third.assign (myints,myints+3);   // assigning from array.

	cout << "Size of first: " << int (first.size()) << endl;
	cout << "Size of second: " << int (second.size()) << endl;
	cout << "Size of third: " << int (third.size()) << endl;
	return 0;
}
